 /**
 * @(#) StartupCommand.as
 *
 * @date		2013. 05. 29.
 * @version		1.0
 * @author		Park, Jutae
 * @description	Application 시작을 처리하는 Command
 * 				 
 */
package com.skt.common_hr.nametag.controller
{
	import com.skt.common_hr.nametag.model.NametagProxy;
	import com.skt.common_hr.nametag.view.NametagMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(note:INotification):void
		{
			var app:Nametag = note.getBody() as Nametag;
			trace("execute startupCommand in Nametag Module");
			
			facade.registerProxy(new NametagProxy());
			//facade.registerProxy(new CodesProxy());
			
			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new NametagMediator(app.view));
		}
	}
}